package com.tsh.xml.test.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.tsh.xml.anno.XmlElementReName;
@XmlElementReName(name = "Reqeust")
public class PacketDto  implements Serializable{
	
	private Head head; 
	
	@XmlElementReName(name = "Body")
	private List<? extends BodyDto> bodyList;
	
	public PacketDto() {
		this.head = new Head();
		this.bodyList = new ArrayList();;
	}
	 
	public PacketDto(Head head, List<? extends BodyDto> bodyList) {
		super();
		this.head = head;
		this.bodyList = new ArrayList();;
	}

	public Head getHead() {
		return head;
	}


	public void setHead(Head head) {
		this.head = head;
	}

	public List<? extends BodyDto> getBodyList() {
		return bodyList;
	}

	public void setBodyList(List<? extends BodyDto> bodyList) {
		this.bodyList = bodyList;
	}

	 
	 
}
